package STUDENT.TRINHQUANGXUANDUC.OPPS.EVENODD;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		Controllers eControllers = new Controllers();
		EVObject object = new EVObject();
		Scanner sc = new Scanner(System.in);
		String value;
		System.out.println("Xin moi nhap so muon kiem tra");
		value = sc.nextLine();
		do {
			if (value.isEmpty()) {
				System.out.println("Xin moi nhap so muon kiem tra");
				value = sc.nextLine();
			} else {
				object.setValus(Integer.parseInt(value));
			}
		} while (value.isEmpty());
		sc = new Scanner(System.in);
		System.out.println("Xin moi chon: 1.Chan/2.Le");
		value = sc.nextLine();
		do {
			if (value.isEmpty()) {
				System.out.println("Xin moi chon: 1.Chan/2.Le");
				value = sc.nextLine();
			} else {
				object.setOption(Integer.parseInt(value));
			}
		} while (value.isEmpty());
		System.out.println("Ket qua la: " + eControllers.Chek(object));
	}
}
